class Myrunnable implements Runnable{

    @Override
    public void run() {
        System.out.println("Runnable");
    }
}

public class Class2 {
    public static void main(String[] args) {
        Myrunnable myrunnable=new Myrunnable();
        Thread t1=new Thread(myrunnable);
        t1.start();
    }

}
